﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ProtoType
{
    public class GumballMonitor
    {
        GumballMachine machine;
        public GumballMonitor(GumballMachine machine)
        {
            this.machine = machine;
        }

        public void report()
        {
            Console.WriteLine("gumball machine: " + machine.GetLocation());
            Console.WriteLine("current inventory: " + machine.GetCount() + " gumballs");
            Console.WriteLine("current state: " + machine.GetState());

        }
    }
}
